import request from '../utils/request';

// 登陆
export function loginService(username, password, type) {
  const data = {
    'username': username,
    'password': password,
  };
  return request({
    url: 'login',
    method: 'post',
    data: data,
  });
}

// 注销
export function logoutService(username) {
  const data = {
    'userName': username,
  };
  return request({
    url: 'logout',
    method: 'post',
    data: data,
  })
}
